<?php
	header("Content-type: text/html; charset=utf-8");
	$user = $_POST["user"];

	$conn = mysql_connect("localhost:3306","root","root");

	mysql_select_db("ds",$conn);

	$sql = "SELECT user FROM user WHERE user='$user'";

	$result = mysql_query($sql);

	$row = mysql_fetch_assoc($result);

	if($row){
		echo "false";
	}else{
		echo "true";
	}

	mysql_close($conn);



?>